<template>
	<div class='huidao' @click='top'>
    </div>
</template>

<script>
	export default {
		methods:{
			top:function(){
                document.body.scrollTop=0;
                console.log(111)
            }
		},
		mounted:function(){
			  setInterval(function(){
                    if(document.body.scrollTop>document.body.clientHeight){
                        $('.huidao').css('bottom','0.2rem').css('display','block')
                    }else{
                        $('.huidao').css('bottom','-0.48rem').css('display','node')
                    }
                },10);
		}
	}
</script>